package com.indexingsystem.boss.Vo;

import java.io.Serializable;

public class OrderResVo implements Serializable {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 7807764646640620366L;

	private String				resId;

	private String				resCategoryId;

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId;
	}

	

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderResVo other = (OrderResVo) obj;
		if (resCategoryId == null) {
			if (other.resCategoryId != null)
				return false;
		} else if (!resCategoryId.equals( other.resCategoryId ))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals( other.resId ))
			return false;
		return true;
	}

	public OrderResVo() {
		super();
	}

	public OrderResVo(String resId, String resCategoryId) {
		super();
		this.resId = resId;
		this.resCategoryId = resCategoryId;
	}

	@Override
	public String toString() {
		return "OrderResVo [resId=" + resId + ", resCategoryId=" + resCategoryId + "]";
	}
}